package com.sky.api.client;


import com.sky.api.client.fallback.ItemClientFallbackFactory;
import com.sky.api.config.DefaultFeignConfig;
import com.sky.result.Result;
import com.sky.vo.DishVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "item-service-user",configuration = {DefaultFeignConfig.class},fallbackFactory = ItemClientFallbackFactory.class)
public interface ItemClient {
    @GetMapping("/user/dish/id={id}")
    Result<DishVO> getById(@PathVariable Long id);

}
